package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;

import java.util.List;

public interface CommentApi {
    //发布评论
    Integer postCommen(Comment comment1);

    //查看评论列表
    List<Comment> lookComments(String movementId, Integer page, Integer pageSize, int type);

    //查看是否点赞过


    //删除comment
    Integer delete(Comment comment);

    Boolean isLike(Long userId, String movementId, CommentType commentType);
//
//    //判断用户对评论是否已经点过赞
//    Boolean hasLikeComment(Long userId, String commentId,CommentType commentType);

//    //保存对评论点赞的数据内容到数据库
//     Integer saveLikeComment(Comment comment);


//     //取消对评论的点赞
//    Integer deleteLikeComment(Comment comment);
}
